<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-themes-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no">
    <title>系统通知</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e6f0ff 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
        }
        
        /* 标题栏样式 */
        #header {
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            padding: 15px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header_con {
            display: flex;
            align-items: center;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }
        
        .header_con a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: white;
            font-size: 18px;
            transition: all 0.3s ease;
            padding: 8px;
            position: absolute;
            left: 0;
        }
        
        .header_con a:hover {
            transform: translateX(-5px);
        }
        
        .header_con a span {
            display: inline-block;
            width: 24px;
            height: 24px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>') no-repeat center;
            background-size: contain;
        }
        
        .top_tit {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        /* 主内容区 */
        .about_box {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        /* 通知卡片样式 */
        .notic_box {
            width: 100%;
            max-width: 600px;
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border-left: 5px solid #2575fc;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .notic_box:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(37, 117, 252, 0.15);
        }
        
        .notic_box.unread {
            border-left: 5px solid #6a11cb;
            background: rgba(106, 17, 203, 0.03);
        }
        
        .notic_box.unread::after {
            content: "";
            position: absolute;
            top: 15px;
            right: 15px;
            width: 10px;
            height: 10px;
            background: #ff4757;
            border-radius: 50%;
        }
        
        .not_left {
            flex: 1;
        }
        
        .xt_tz {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
        }
        
        .xt_tz::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            background: #2575fc;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .notic_box.unread .xt_tz::before {
            background: #6a11cb;
        }
        
        .xt_sj {
            font-size: 14px;
            color: #7f8c8d;
            margin-left: 18px;
            position: relative;
        }
        
        .xt_sj::before {
            content: "•";
            position: absolute;
            left: -15px;
            color: #bdc3c7;
        }
        
        .xt_content {
            font-size: 15px;
            color: #555;
            line-height: 1.5;
            margin-top: 10px;
            padding: 10px 0;
            border-top: 1px dashed #eee;
            display: none;
        }
        
        .notic_box.active .xt_content {
            display: block;
        }
        
        .not_right {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #7f8c8d;
            transition: all 0.3s ease;
        }
        
        .notic_box:hover .not_right {
            color: #2575fc;
        }
        
        .notic_box .not_right i {
            transition: transform 0.3s ease;
        }
        
        .notic_box.active .not_right i {
            transform: rotate(180deg);
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: #7f8c8d;
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #bdc3c7;
        }
        
        .empty-state p {
            font-size: 16px;
            line-height: 1.6;
        }
        
        /* 筛选选项卡 */
        .filter-tabs {
            display: flex;
            width: 100%;
            max-width: 600px;
            margin: 0 auto 20px;
            background: white;
            border-radius: 12px;
            padding: 5px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        
        .filter-tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 15px;
            color: #7f8c8d;
        }
        
        .filter-tab.active {
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            color: white;
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .notic_box {
            animation: fadeIn 0.5s ease-out forwards;
            opacity: 0;
        }
        
        .notic_box:nth-child(1) { animation-delay: 0.1s; }
        .notic_box:nth-child(2) { animation-delay: 0.2s; }
        .notic_box:nth-child(3) { animation-delay: 0.3s; }
        .notic_box:nth-child(4) { animation-delay: 0.4s; }
        .notic_box:nth-child(5) { animation-delay: 0.5s; }
        
        /* 响应式设计 */
        @media (max-width: 480px) {
            .about_box {
                padding: 10px;
            }
            
            .notic_box {
                padding: 15px;
            }
            
            .xt_tz {
                font-size: 16px;
            }
            
            .filter-tab {
                font-size: 14px;
                padding: 8px 5px;
            }
        }
    </style>
</head>
<body>
    <!-- 标题栏 -->
    <header id="header">
        <div class="header_con">
            <a href="javascript:history.go(-1);">
                <span></span>
            </a> 
            <div class="top_tit">系统通知</div>
        </div>
    </header>
    
    <!-- 主内容区 -->
    <div class="about_box">
        <!-- 筛选选项卡 -->
        <div class="filter-tabs">
            <div class="filter-tab active">全部通知</div>
            <div class="filter-tab">未读通知</div>
            <div class="filter-tab">已读通知</div>
        </div>
        
        <!-- 通知列表 -->
        <div class="notic_box unread">
            <div class="not_left">
                <div class="xt_tz">新版本发布：快答答题1.2.2</div>
                <div class="xt_sj">06月10日 14:30</div>
                <div class="xt_content">
                    本次更新包含以下改进：<br>
                    1. 优化了答题界面的响应速度<br>
                    2. 新增了错题集功能<br>
                    3. 修复了已知的稳定性问题<br>
                    4. 改进了夜间模式体验<br>
                    建议所有用户尽快更新以获得最佳体验。
                </div>
            </div>
            <div class="not_right">
                <i class="fas fa-chevron-down"></i>
            </div>
        </div>
        
        <div class="notic_box">
            <div class="not_left">
                <div class="xt_tz">服务器维护通知</div>
                <div class="xt_sj">06月08日 09:15</div>
                <div class="xt_content">
                    为了提供更稳定的服务，我们计划于2023年6月15日（周四）凌晨2:00-4:00进行服务器维护升级。<br>
                    在此期间，您可能会遇到短暂的服务中断，给您带来的不便深表歉意。<br>
                    维护完成后，我们将为您提供更流畅的使用体验。
                </div>
            </div>
            <div class="not_right">
                <i class="fas fa-chevron-down"></i>
            </div>
        </div>
        
        <div class="notic_box unread">
            <div class="not_left">
                <div class="xt_tz">答题挑战赛即将开启</div>
                <div class="xt_sj">06月05日 18:42</div>
                <div class="xt_content">
                    本月答题挑战赛将于6月15日正式开启！<br>
                    本次比赛准备了丰富奖品：<br>
                    🏆 冠军：iPad Air<br>
                    🥈 亚军：AirPods Pro<br>
                    🥉 季军：快答会员年卡<br>
                    参与即有奖励，快来挑战吧！
                </div>
            </div>
            <div class="not_right">
                <i class="fas fa-chevron-down"></i>
            </div>
        </div>
        
        <div class="notic_box">
            <div class="not_left">
                <div class="xt_tz">新增题库：人工智能专题</div>
                <div class="xt_sj">05月28日 11:20</div>
                <div class="xt_content">
                    我们新增了人工智能专题题库，包含500+精选题目，涵盖：<br>
                    • 机器学习基础<br>
                    • 深度学习原理<br>
                    • 自然语言处理<br>
                    • 计算机视觉<br>
                    欢迎各位AI爱好者前来挑战！
                </div>
            </div>
            <div class="not_right">
                <i class="fas fa-chevron-down"></i>
            </div>
        </div>
        
        <div class="notic_box">
            <div class="not_left">
                <div class="xt_tz">系统优化通知</div>
                <div class="xt_sj">05月20日 16:05</div>
                <div class="xt_content">
                    近期我们完成了以下优化：<br>
                    1. 答题结果页加载速度提升40%<br>
                    2. 修复了部分设备上的显示问题<br>
                    3. 优化了答题历史记录功能<br>
                    4. 改善了搜索体验<br>
                    感谢您一直以来的支持！
                </div>
            </div>
            <div class="not_right">
                <i class="fas fa-chevron-down"></i>
            </div>
        </div>
    </div>

    <script>
        // 通知项展开/收起功能
        document.querySelectorAll('.notic_box').forEach(box => {
            const arrow = box.querySelector('.not_right i');
            const content = box.querySelector('.xt_content');
            
            box.addEventListener('click', function(e) {
                // 防止点击箭头时触发两次
                if (e.target === arrow) return;
                
                this.classList.toggle('active');
                
                // 如果是未读通知，点击后标记为已读
                if (this.classList.contains('unread')) {
                    this.classList.remove('unread');
                }
            });
        });
        
        // 添加点击效果
        document.querySelectorAll('.notic_box').forEach(box => {
            box.addEventListener('click', function() {
                this.style.transform = 'scale(0.98)';
                
                setTimeout(() => {
                    this.style.transform = '';
                }, 200);
            });
        });
        
        // 筛选选项卡功能
        document.querySelectorAll('.filter-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                // 移除所有active类
                document.querySelectorAll('.filter-tab').forEach(t => {
                    t.classList.remove('active');
                });
                
                // 为当前选项卡添加active类
                this.classList.add('active');
                
                // 这里可以添加实际筛选逻辑
                // 本示例中仅做UI演示
            });
        });
        
        // 添加悬浮效果
        document.querySelectorAll('.notic_box').forEach(box => {
            box.addEventListener('mouseenter', function() {
                this.style.boxShadow = '0 10px 25px rgba(37, 117, 252, 0.2)';
            });
            
            box.addEventListener('mouseleave', function() {
                this.style.boxShadow = '0 5px 15px rgba(0, 0, 0, 0.05)';
            });
        });
    </script>
</body>
</html>